package com.git.bds.mr.doctor.model.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.io.Serializable;

/**
 * @author 成大事
 * @since 2022/9/27 17:13
 */
@Data
public class DoctorInfoDTO implements Serializable {

    @ApiModelProperty("医生id")
    private Long id;

    @NotNull
    @ApiModelProperty("科室id")
    private Long sectorId;

    @NotNull
    @NotBlank(message = "工号不能为空")
    @ApiModelProperty("工号")
    private String jobNum;

    @NotNull
    @NotBlank(message = "医生姓名不能为空")
    @ApiModelProperty("医生姓名")
    private String name;

    @NotNull
    @NotBlank(message = "医生职称不能为空")
    @ApiModelProperty("医生职称")
    private String title;

    @Min(0)
    @Max(1)
    @ApiModelProperty("（0：M；1：W）")
    private Integer sex;

    @ApiModelProperty("头像")
    private String avatar;

    @NotNull
    @NotBlank(message = "研究方向不能为空")
    @ApiModelProperty("研究方向")
    private String indicationDirection;

    @NotNull
    @Size(min = 20,max = 100,message = "年龄范围有误！1")
    @TableField("age")
    private Integer age;
}
